package cn.yunhe.sf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
public class IndexController {

//    @RequestMapping("/ftlIndex")
//    public String ftlIndex(){
//        return "ftlIndex";
//    }
  @RequestMapping("/ftlIndex")
  public String ftlIndex(Map<String,Object> map) {
      map.put("name","张三");//相当于转发
      map.put("age",33);
      map.put("sex","0");
     return "ftlIndex";
    }

}
